package com.hsylient.service.impl;

import com.hsylient.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

@Slf4j(topic = "springLog")
@Repository
public class UserServiceImpl implements UserService {

    @Override
    public void tagMethod(String name, Integer id) {
        log.info("tagMethod()方法执行, 参数为：" + name + ", id为：" + id);
    }

    public void errorTagMethod() throws NullPointerException {
        throw new NullPointerException("手动抛出的空指针异常");
    }
}
